package com.app.ctzoverseas.network.model

import android.os.Parcelable
import com.stx.xhb.androidx.entity.BaseBannerInfo
import kotlinx.parcelize.Parcelize


data class GetDataBean(
    var bannerList: List<BannerInData> = mutableListOf(),
    var appMessage: MessageData? = null

) {
    @Parcelize
    data class BannerInData(
        val bannerTitle: String?,
        val bannerUrl: String?,
        val targetUrl: String?
    ): Parcelable, BaseBannerInfo {
        override fun getXBannerUrl(): Any? {
            return bannerUrl
        }

        override fun getXBannerTitle(): String? {
            return bannerTitle
        }
    }

    data class MessageData(
        val lastMessage: String?,
        val count: Int?,
        val messageType: Int?,
        val id: Long?,
        val businessId: Long?
    )
}

data class ShopListData(
    val id: Long?,
    val shopName: String?,
    val shopImage: String?,
    val collectCount: Int?,
    val hits: Int?,
    val hasCollect: Int?,
    val distance: String?,
    var goodsList: List<GoodData>? = mutableListOf()
)

data class GoodData(
    val goodsName: String?,
    val goodsIntro: String?,
    val id: Long?,
    val goodsImage: String?,
    val salesPrice: Float?
)